package com.angel.architecture.daos;

import java.util.Collection;

import com.angel.architecture.persistence.beans.User;
import com.angel.architecture.persistence.beans.UserRoles;
import com.angel.architecture.persistence.ids.ObjectId;
import com.angel.dao.generic.interfaces.GenericDAO;

/**
 *
 * @author William
 * @since 05/March/2009
 *
 */
public interface UserDAO extends GenericDAO<User, ObjectId> {


	public Collection<User> findAllByUserRoles(UserRoles userRoles);

    public Collection<User> findAllActives();

    public Collection<User> findAllNonActives();

	public User findUniqueByUserName(String username);

    public User findUniqueOrNullByUserNameAndPassword(String username, String password);

}
